/*
 * @Description: 商店模型
 * @Author: zhhuan
 * @LastEditTime: 2024-03-28 15:32:23
 */
const mongoose = require("../db/db")

const Schema = mongoose.Schema(
  {
    name: String,
    imgUrl: String,
    sales: Number, //月售
    expressLimit: {
      type: Number,
      default: 0
    }, //起送
    expressPrice: Number, //基础运费
    slogan: String
  },
  { timestamps: true }
)
const Shop = mongoose.model("shop", Schema)

module.exports = Shop
